#include "node.h"

Node::Node(int x, int y)
{
    this->x = x;
    this->y = y;
    this->g = 0;
    this->h = 0;
    this->f = 0;
    this->cx = x;
    this->cy = y;
}

Node::Node(int x, int y, float g, float h)
{
    this->x = x;
    this->y = y;
    this->g = g;
    this->h = h;
    this->f = g + h;
    this->cx = x;
    this->cy = y;
}
